package com.zhangjun.spring.entity.Impl;

import com.zhangjun.spring.entity.Student;
import org.springframework.stereotype.Service;

/**
 * @author 张钧
 * @Description
 * @create 2022-09-16 19:38
 */
@Service("student")
public class StudentImpl implements Student {
    @Override
    public String learn(String method) {
        if("cn".equals(method)){
            return "中文";
        }else if("en".equals(method)){
            return "English";
        }else{
            return "出错";
        }
    }
}
